package de.uni_saarland.coli.doclists.data.btree;

/**
 * @author stefan
 *
 * Id,data mapping
 * @param <T> Type of value
 */
public interface IMapData<T> {
	/**
	 * Adds id,data tuple .
	 * 
	 * @param id an id
	 * @param data the data
	 * @return the data
	 */
	public T add(int id, T data);
	
	/**
	 * Gets the ids data
	 * @param id an id.
	 * @return the data
	 */
	public T get(int id);
	
	public boolean containsKey(int key);
}
